package test;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import dsa.LinkedList;
import expression.PostfixEvaluator;

public class CaseyCapricePETest
{
	@Test
	public void test1()
	{
		int answer = PostfixEvaluator.eval("1 2 + 3 * 4 -");
		assertTrue(answer == 5);
	}
	
	@Test
	public void test2()
	{
		int answer = PostfixEvaluator.eval("9 9 * 3 / 10 +");
		assertTrue(answer == 37);
	}
	
	@Test
	public void test3()
	{
		int answer = PostfixEvaluator.eval("10 10 5 3 4 * + - *");
		assertTrue(answer == -70);
	}
	
	@Test
	public void test4()
	{
		int answer = PostfixEvaluator.eval("5 6 7 + * 5 + 7 / 2 *");
		assertTrue(answer == 20);
	}
	
	@Test
	public void test5()
	{
		int answer = PostfixEvaluator.eval("1 2 + 3 * 4 - 5 5 + +");
		assertTrue(answer == 15);
	}
	

}